package org.tea.mapper.common;

import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Mapper;
import org.tea.mapper.util.BaseDeleteMapperProvider;

import java.util.List;

/**
 *@author lxh
 */
@Mapper
public interface BaseDeleteMapper<T> {

    @DeleteProvider(type = BaseDeleteMapperProvider.class, method = "deleteByPrimaryKey")
    int deleteByPrimaryKey(Object primaryKey);

    @DeleteProvider(type = BaseDeleteMapperProvider.class, method = "deleteRows")
    int deleteRows(List<? extends T> deletedRows);
}
